3.4.43 \(\int \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)} \, dx\) [343]

Optimal. Leaf size=41 \[ -\frac {a \cos (e+f x) \sqrt {c-c \sin (e+f x)}}{f \sqrt {a+a \sin (e+f x)}} \]

[Out]

-a*cos(f*x+e)*(c-c*sin(f*x+e))^(1/2)/f/(a+a*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {2817} \begin {gather*} -\frac {a \cos (e+f x) \sqrt {c-c \sin (e+f x)}}{f \sqrt {a \sin (e+f x)+a}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

-((a*Cos[e + f*x]*Sqrt[c - c*Sin[e + f*x]])/(f*Sqrt[a + a*Sin[e + f*x]]))

Rule 2817

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
-2*b*Cos[e + f*x]*((c + d*Sin[e + f*x])^n/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]])), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin {align*} \int \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)} \, dx &=-\frac {a \cos (e+f x) \sqrt {c-c \sin (e+f x)}}{f \sqrt {a+a \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.06, size = 39, normalized size = 0.95 \begin {gather*} \frac {\sqrt {a (1+\sin (e+f x))} \sqrt {c-c \sin (e+f x)} \tan (e+f x)}{f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

(Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]]*Tan[e + f*x])/f

________________________________________________________________________________________

Maple [A]
time = 16.09, size = 44, normalized size = 1.07

method result size
default \(\frac {\sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sin \left (f x +e \right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}{f \cos \left (f x +e \right )}\) \(44\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/f*(-c*(sin(f*x+e)-1))^(1/2)*sin(f*x+e)*(a*(1+sin(f*x+e)))^(1/2)/cos(f*x+e)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c), x)

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 47, normalized size = 1.15 \begin {gather*} \frac {\sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}{f \cos \left (f x + e\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)*sin(f*x + e)/(f*cos(f*x + e))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**(1/2)*(c-c*sin(f*x+e))**(1/2),x)

[Out]

Integral(sqrt(a*(sin(e + f*x) + 1))*sqrt(-c*(sin(e + f*x) - 1)), x)

________________________________________________________________________________________

Giac [A]
time = 0.48, size = 54, normalized size = 1.32 \begin {gather*} \frac {2 \, \sqrt {a} \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}}{f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

2*sqrt(a)*sqrt(c)*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sgn(sin(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*
x + 1/2*e)^2/f

________________________________________________________________________________________

Mupad [B]
time = 7.01, size = 47, normalized size = 1.15 \begin {gather*} \frac {\sin \left (2\,e+2\,f\,x\right )\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}}{2\,f\,{\cos \left (e+f\,x\right )}^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^(1/2)*(c - c*sin(e + f*x))^(1/2),x)

[Out]

(sin(2*e + 2*f*x)*(a*(sin(e + f*x) + 1))^(1/2)*(-c*(sin(e + f*x) - 1))^(1/2))/(2*f*cos(e + f*x)^2)

________________________________________________________________________________________